package com.csy.basethread;

import com.csy.util.ILogFactory;

class ThreadDemo01 extends Thread implements ILogFactory {
    public void run() {
        for (int i = 0; i < 10; i++) {
            log.info("子线程i:{}", i);
        }
    }
}

public class Test001 implements ILogFactory {
    public static void main(String[] args) {
        log.info("主线程开始。。。。。。");
        log.info("主线程结束。。。。。。");
        ThreadDemo01 threadDemo01 = new ThreadDemo01();
        threadDemo01.start();
    }
}
